const route = {
  state:{
      route:[],
      title:[{
          'admin':"系统管理"
      }]
  },
  getters:{
      filterRoute: state => {
          return state.title.map(item => {
              return {
                  title:item.admin,
                  list:state.route.filter(i => i.meta.title == item.admin)
              }
          })
      },
      getRoute: state => state.route
  },
  mutations:{
      setRoute: (state,arr) => {
          state.route = arr
      }
  },

}

export default route
